/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mobile;

import util.Date;
import util.Time;

/**
 *
 * @author Alberto
 */
public class Message {

    private long mobile;
    private Time start;
    private double cost;
    private Date date;

    public Message(long mobile, Time start, Date date) {
        this.mobile = mobile;
        this.start = start;
        this.date = date;
    }

    public long getMobile() {
        return mobile;
    }

    public void setMobile(long mobile) {
        this.mobile = mobile;
    }

    public Time getStart() {
        return start;
    }

    public void setStart(Time start) {
        this.start = start;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public boolean isSpecial(){
        return mobile-10000<0;
    }

    @Override
    public Object clone() throws CloneNotSupportedException{
        Message clon = new Message(this.mobile,(Time)start.clone(),(Date)date.clone());
        return clon;
    }

}
